package com.chenxbook.modules.examples.java;

import java.io.Serializable;

public class Hand implements Serializable {
    private static final long serialVersionUID = -5324712646009937171L;

    private boolean isShaken;

    public Hand shake(Integer force, Integer duration) {
        if (force > 3 && duration > 7) {
            isShaken = true;
        }
        return this;
    }

    public boolean isShaken() {
        return isShaken;
    }
}
